package com.ssm.controller;

import com.spring.annotion.MyAutowired;
import com.spring.annotion.MyController;
import com.spring.annotion.MyModelAttribute;
import com.spring.annotion.MyRequestMapping;
import com.spring.springmvc.MyModelAndView;
import com.spring.xmlrules.RequestMethod;
import com.ssm.service.IUserService;

/**
 * @Description:
 * @Auther: zhibo
 * @Date: 2018/8/23 18:00
 */
@MyController
public class UserController {
    @MyAutowired
    private IUserService userService;

    @MyRequestMapping(value = "/addUser",method = RequestMethod.POST)
    public MyModelAndView addUser(){
        userService.addUser();
        MyModelAndView modelAndView = new MyModelAndView("welcome");
        return modelAndView;
    }

}
